package com.sluggard.ai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sluggard.ai.model.entity.KnowledgeFileEntity;
import org.springframework.web.multipart.MultipartFile;

/**
 * 知识库文件服务接口
 *
 * @author lizheng
 * @since 2025-04-23
 */
public interface IKnowledgeFileService extends IService<KnowledgeFileEntity> {

    /**
     * 上传文件
     *
     * @param file 文件
     */
    void upload(MultipartFile file,  Long knowledgeId);

    /**
     * 分割文件
     *
     * @param id 文件id
     */
    void splitFile(Long id);
}